#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QFontDialog>
#include <QDebug>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}


void MainWindow::on_pushButton_clicked()
{
    bool Isok = false;
    QFont font = QFontDialog::getFont(&Isok);
    qDebug() << "ok is: " << Isok;
    qDebug() << font.family();
    qDebug() << font.italic();
    qDebug() << font.bold();

    ui->pushButton->setFont(font);
}















